import Vue from "vue";
import Vuex from "vuex";
import app from "./modules/app";
import contract from "./modules/contract";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    contract,
  },
  getters: {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    contractType: state => state.contract.contractType,
  }
});

export default store;